package org.zoomdev.zoom.dao.adapters.parameter;

import org.zoomdev.zoom.dao.adapters.ParameterAdapter;

import java.sql.PreparedStatement;
import java.sql.SQLException;

// 单精度浮点型适配器
public class FloatParameterAdapter implements ParameterAdapter<Float> {

    @Override
    public void setNonnullParameter(PreparedStatement ps, int index, Float data) throws SQLException {
        ps.setFloat(index, data);
    }
}
